package com.epam.lunch.service;

import static java.lang.String.format;
import com.epam.lunch.domain.Address;
import com.epam.lunch.domain.Order;
import com.epam.lunch.domain.OrderItem;

public class App {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HardCodedRestaurantRepository repo = new HardCodedRestaurantRepository();
		SystemOutMenuLister lister = new SystemOutMenuLister(repo);
		
		lister.listMenus();
		
		OrderBuilder builder = new OrderBuilder();
		Order order = builder
				.setPerson("lalyos")
				.addItem(1, 1)
				.addItem(101, 1)
				.addItem(103,2).
				build();
		
//		NetCincer cincer = new NetCincer(repo);
//		cincer.order(order);
//		
//		for (Order nextOrder : cincer.getOrderHistory()) {
//			System.out.println("next Order: " + nextOrder.getPerson());
//			for (OrderItem item : nextOrder.getItems()) {
//				System.out.println(format ("  %d of %s" , item.getQuantity(), item.getFood()));
//			}
//		}
		
		

	}

}
